package com.cwh.taskcenter.notice.sms.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Map;

/**
 * @author cwh
 */
@Data
public class SmsSendToUserReqDTO implements Serializable {

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String mobile;

    @Schema(description = "短信模板编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "短信模板编号不能为空")
    private String templateCode;

    @Schema(description = "短信模板参数")
    private Map<String, Object> templateParams;

}
